<?php
session_start();

define("BASE_URL", "http://189.32.162.113:8080/igualokut");
define("BASE_MODULE", "front");
define("BASE_ACTION", "login");

function get_module()
{
	$module = $_GET["module"];

	if (!isset($module))
	{
		$module = BASE_MODULE;
	}

	return $module;
}

function get_action()
{
	$action = $_GET["action"];

	if (!isset($action))
	{
		$action = BASE_ACTION;
	}

	return $action;
}

function redirect($module, $action)
{
	header("Location: " . BASE_URL . "?module=$module&action=$action");
}
?>
